<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  {{info}}
  <!--v-model="变量" 让控件的值和变量进行双向绑定
  变量值改变会影响页面,页面的改变也会影响变量-->
  <input type="text" v-model="info">
  <hr>
  用户名:<input type="text" v-model="user.username">
  密码:<input type="text" v-model="user.password">
</div>
<script src="js/vue.min.js"></script>
<script>
  let v = new Vue({
    el:"body>div",
    data:{
      info:"双向绑定测试",
      user:{username:"",password:""}
    }
  })
</script>

</body>
</html>